'''
Created on 26/03/2011

@author: andrew
'''

from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker

_url = 'sqlite:///../resources/songs2listen.db'
#_url='mysql://root:@localhost/songs2listen'
autocommit=False
autoFlush=False
echo=False

engine = create_engine(_url, echo=echo)
Base = declarative_base(bind=engine)
Session = sessionmaker(bind=engine, autocommit=autocommit, autoflush=autoFlush)



